home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / windows / cf600.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-02-04  |  4KB  |  120 lines

  1. echo off
  2. cls
  3. if '%1'=='' goto NeedDrive
  4.  
  5. if not exist cmfiler.com goto WrongDir
  6. if exist cmfiler.ovy goto RightDir
  7.  
  8. :NeedDrive
  9. echo You must specify the drive letter into which to install CMFiler; e.g.
  10. echo.
  11. echo INSTALL C
  12. echo.
  13. echo Do not include a colon after the drive letter. Please try again.
  14. echo.
  15. goto TheEnd
  16.  
  17. :WrongDir
  18. echo INSTALL.BAT is unable to find CMFiler program files
  19. echo.
  20. echo Make sure that all the files from the original CF600.ZIP, CF600.EXE
  21. echo or CMFILE.ZIP compression are in the same directory, and that that
  22. echo directory is selected as the DOS current directory before running
  23. echo INSTALL.BAT.
  24. echo.
  25. pause
  26. goto TheEnd
  27.  
  28. :RightDir
  29. echo        *****  CMFiler Ver 6.00 Installation *****
  30. echo.
  31. if not exist %1:\DOS\CHOICE.COM then goto InstallNow
  32. echo This batch file creates the directory %1:\CF600 and copies to it
  33. echo the files in the CMFiler Ver 6.00 fileset.
  34. echo.
  35. %1:\DOS\CHOICE.COM Proceed with installation 
  36. if errorlevel 2 goto TheEnd
  37.  
  38. :InstallNow
  39. cls
  40. echo Installing CMFiler Ver 6.00 to %1:\CF600
  41. echo.
  42. echo Creating %1:\CF600
  43. echo.
  44. md %1:\cf600
  45. copy cf.bat %1:\cf600\cf.bat
  46. if not exist %1:\cf600\cf.bat goto FailDir
  47. echo Copying files. . .
  48. echo.
  49. copy *.* %1:\cf600
  50. echo Copying CF.BAT to %1:\
  51. copy cf.bat %1:\
  52. echo.
  53. echo To run CMFiler at the DOS prompt, you may:
  54. echo.
  55. echo   (1) type:
  56. echo         %1:\CF600\CMFILER
  57. echo.
  58. echo      or;
  59. echo.
  60. echo   (2) just type:
  61. echo         CF
  62. echo.
  63. pause
  64. cls
  65. echo The files in the directory CF600 include CMFILER.PIF and CMFILER.ICO
  66. echo files for running CMFiler under Windows 3.1 or Windows 95.
  67. echo.
  68. pause
  69. echo For Windows 3.1:
  70. echo.
  71. echo To add CMFiler to a program group, go to the Windows Program Manager, and
  72. echo double click on the desired group.  Then, in the Program Manager menu bar,
  73. echo click on File, and New...  Then click the Program Item bullet, if
  74. echo necessary, and OK.
  75. echo.
  76. echo Fill in the data in the next menu as follows, moving the cursor from
  77. echo each line to the next using your mouse and clicking:
  78. echo.
  79. echo Description:  CMFiler
  80. echo Command Line: %1:\CF600\CMFILER.PIF
  81. echo Working Directory: %1:\  [or whatever you would like CMFiler to start in]
  82. echo Shortcut Key: [Optional. I use Ctrl+Alt+C]
  83. echo Also decide if you want CMFiler to start minimized. I leave this off.
  84. echo.
  85. echo Then click on the Change Icon... button.  Windows will tell you there are
  86. echo no available icons for this file.  Click OK, then, on the File Name line
  87. echo in the next menu, type %1:\CF600\CMFILER.ICO and click on OK twice.
  88. echo The CMFiler icon should appear in the CMFiler Properties box.
  89. echo Click OK on the Program Item Properties menu, and the CMFiler icon should
  90. echo appear in the program group. Just double click on it to run.
  91. echo.
  92. pause
  93. cls
  94. echo For Windows 95:
  95. echo.
  96. echo To add CMFiler to a program folder as a shortcut, click on Start,
  97. echo go to Settings and click on Taskbar...  Click on the
  98. echo Start Menu Programs tab, click on Add, type in %1:\CF600\CMFILER.PIF
  99. echo and click on Next.
  100. echo.
  101. echo Select a folder to put the CMFiler shortcut into and click on Next.
  102. echo If you want CMFiler on your desktop when Windows 95 starts up, click on
  103. echo the folder Desktop.  If you want Windows 95 to start up with
  104. echo CMFiler already running, click on the Startup folder.  Otherwise,
  105. echo pick an appropriate folder in Programs to put it in.
  106. echo.
  107. echo Select a name for the shortcut (CMFiler will probably be the default),
  108. echo and click OK.
  109. echo.
  110. pause
  111. goto TheEnd
  112. :FailDir
  113. echo.
  114. echo Unable to create %1:\CF600. Please specify another drive.
  115. echo.
  116. echo on
  117. :TheEnd
  118. echo.
  119. echo on
  120.